package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.account.YuEbao;
import com.ms.p2p.entity.account.YuEbaoLog;
import com.ms.p2p.provider.YeahpayLogProvider;
import com.ms.p2p.service.impl.YuEbaoLogServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class YeahpayLogProviderImpl implements YeahpayLogProvider {
    @Autowired
    YuEbaoLogServiceImpl yuEbaoLogService;

    public int insert(YuEbao yuEbao, String type, BigDecimal money, String remark, String addIp) {
        return yuEbaoLogService.insert(yuEbao,type,money,remark,addIp);
    }

    public int insert(YuEbaoLog yuEbaoLog) {
        return yuEbaoLogService.insert(yuEbaoLog);
    }

    public List<Map<String, Object>> getPager(String userId, String userName, String logType, String begin_date, String end_date, PageBean page) {
        return yuEbaoLogService.getPager(userId,userName,logType,begin_date,end_date,page);
    }

    public Map<String, Object> cacuYesterDay(int userId) {
        return yuEbaoLogService.cacuYesterDay(userId);
    }

    public List<YuEbaoLog> findPager(Integer id, PageBean page) {
        return yuEbaoLogService.findPager(id,page);
    }

    public int findCount(Integer ide) {
        return yuEbaoLogService.findCount(ide);
    }

    public int getCount(String userId, String userName, String logType, String begin_date, String end_date) {
        return yuEbaoLogService.getCount(userId,userName,logType,begin_date,end_date);
    }
}
